<template>
  <el-form ref="form" label-width="auto">
    <el-form-item v-for="item in formData" :key="item.attr_id" :label="item.attr_name">
      <el-input v-model="item.attr_vals" />
    </el-form-item>
  </el-form>
</template>

<script>
export default {
  name: 'GoodsAttributes',
  model: {
    prop: 'formData'
  },
  props: {
    formData: {
      type: Array,
      required: true
    }
  }
}
</script>

<style scoped>

</style>
